﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Input;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_DuyetDonHangBan : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("AdvKhachHang")]
        private ADVObjects _AdvKhachHang;
        [AccessedThroughProperty("AdvNhanVien")]
        private ADVObjects _AdvNhanVien;
        [AccessedThroughProperty("CboLoaiTien")]
        private ComboBox _CboLoaiTien;
        [AccessedThroughProperty("CboPhuongThucThanhToan")]
        private ComboBox _CboPhuongThucThanhToan;
        [AccessedThroughProperty("CboTinhTrang")]
        private ComboBox _CboTinhTrang;
        [AccessedThroughProperty("CmdCancel")]
        private Button _CmdCancel;
        [AccessedThroughProperty("CmdOK")]
        private Button _CmdOK;
        [AccessedThroughProperty("GroupBox1")]
        private GroupBox _GroupBox1;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label11")]
        private Label _Label11;
        [AccessedThroughProperty("Label13")]
        private Label _Label13;
        [AccessedThroughProperty("Label14")]
        private Label _Label14;
        [AccessedThroughProperty("Label16")]
        private Label _Label16;
        [AccessedThroughProperty("Label18")]
        private Label _Label18;
        [AccessedThroughProperty("Label19")]
        private Label _Label19;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label22")]
        private Label _Label22;
        [AccessedThroughProperty("Label23")]
        private Label _Label23;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Label9")]
        private Label _Label9;
        [AccessedThroughProperty("TxtDienGiai")]
        private TextBox _TxtDienGiai;
        [AccessedThroughProperty("TxtHanGiaoHang")]
        private DateTimePicker _TxtHanGiaoHang;
        [AccessedThroughProperty("TxtHoaHong")]
        private C1NumericEdit _TxtHoaHong;
        [AccessedThroughProperty("TxtMuaHang")]
        private C1NumericEdit _TxtMuaHang;
        [AccessedThroughProperty("TxtNgayChungTu")]
        private DateTimePicker _TxtNgayChungTu;
        [AccessedThroughProperty("TxtNgayDuyet")]
        private DateTimePicker _TxtNgayDuyet;
        [AccessedThroughProperty("TxtNgayHopDong")]
        private DateTimePicker _TxtNgayHopDong;
        [AccessedThroughProperty("TxtSoChungTu")]
        private TextBox _TxtSoChungTu;
        [AccessedThroughProperty("TxtSoHopDong")]
        private TextBox _TxtSoHopDong;
        [AccessedThroughProperty("TxtTongCongNT")]
        private C1NumericEdit _TxtTongCongNT;
        public string cFrmKhoa;
        private IContainer components;
        private clsDonDatHang objDH;

        public Frm_DuyetDonHangBan()
        {
            base.Load += new EventHandler(this.Frm_DuyetDonHangBan_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.cFrmKhoa = "";
            this.objDH = new clsDonDatHang();
            this.InitializeComponent();
        }

        private void CmdCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdOK_Click(object sender, EventArgs e)
        {
            clsDonDatHang objDH = this.objDH;
            objDH.Khoa = this.cFrmKhoa;
            objDH.NgayDuyet = LVYModule.Date2Char(this.TxtNgayDuyet.Text);
            objDH.KhoaNhanVienDuyet = modGeneral.H_USERID;
            objDH.TinhTrang = Conversions.ToString(this.CboTinhTrang.SelectedValue);
            if (this.TxtSoHopDong.Text.Trim() == "")
            {
                objDH.SoHopDong = this.TxtSoHopDong.Text;
                objDH.NgayHopDong = LVYModule.Date2Char(this.TxtNgayHopDong.Text);
            }
            else
            {
                objDH.SoHopDong = "";
                objDH.NgayHopDong = "";
            }
            objDH.DienGiai = this.TxtDienGiai.Text;
            if (objDH.DuyetDonHang())
            {
                this.Dispose();
            }
            objDH = null;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            try
            {
                if (disposing && (this.components != null))
                {
                    this.components.Dispose();
                }
            }
            finally
            {
                base.Dispose(disposing);
            }
        }

        private void Frm_DuyetDonHangBan_Load(object sender, EventArgs e)
        {
            if (this.cFrmKhoa.Trim() == "")
            {
                this.Dispose();
            }
            else
            {
                BuildComboModule.BuildCombo(this.CboLoaiTien, modGeneral.ListDanhMuc.LoaiTien, false, "", "");
                this.CboTinhTrang.Items.Clear();
                this.CboTinhTrang.DataSource = modGeneral.H_DUNGCHUNG.ShowList("0000000001");
                this.CboTinhTrang.ValueMember = "Ma";
                this.CboTinhTrang.DisplayMember = "Ten";
                this.ShowData(this.cFrmKhoa);
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            ComponentResourceManager manager = new ComponentResourceManager(typeof(Frm_DuyetDonHangBan));
            this.Label2 = new Label();
            this.GroupBox1 = new GroupBox();
            this.Label4 = new Label();
            this.TxtNgayDuyet = new DateTimePicker();
            this.TxtDienGiai = new TextBox();
            this.Label9 = new Label();
            this.Label3 = new Label();
            this.AdvNhanVien = new ADVObjects();
            this.TxtTongCongNT = new C1NumericEdit();
            this.Label14 = new Label();
            this.TxtHoaHong = new C1NumericEdit();
            this.Label23 = new Label();
            this.TxtMuaHang = new C1NumericEdit();
            this.Label22 = new Label();
            this.CboLoaiTien = new ComboBox();
            this.Label11 = new Label();
            this.TxtNgayHopDong = new DateTimePicker();
            this.CboPhuongThucThanhToan = new ComboBox();
            this.Label8 = new Label();
            this.Label7 = new Label();
            this.TxtHanGiaoHang = new DateTimePicker();
            this.Label18 = new Label();
            this.TxtSoHopDong = new TextBox();
            this.CboTinhTrang = new ComboBox();
            this.Label19 = new Label();
            this.Label16 = new Label();
            this.AdvKhachHang = new ADVObjects();
            this.Label13 = new Label();
            this.TxtNgayChungTu = new DateTimePicker();
            this.Label1 = new Label();
            this.TxtSoChungTu = new TextBox();
            this.CmdCancel = new Button();
            this.CmdOK = new Button();
            this.GroupBox1.SuspendLayout();
            ((ISupportInitialize) this.TxtTongCongNT).BeginInit();
            ((ISupportInitialize) this.TxtHoaHong).BeginInit();
            ((ISupportInitialize) this.TxtMuaHang).BeginInit();
            this.SuspendLayout();
            this.Label2.AutoSize = true;
            Point point = new Point(0xfe, 0x10c);
            this.Label2.Location = point;
            this.Label2.Name = "Label2";
            Size size = new Size(0x2d, 13);
            this.Label2.Size = size;
            this.Label2.TabIndex = 0x18;
            this.Label2.Text = "K\x00fd ng\x00e0y";
            this.GroupBox1.BackColor = Color.Transparent;
            this.GroupBox1.Controls.Add(this.Label4);
            this.GroupBox1.Controls.Add(this.TxtNgayDuyet);
            this.GroupBox1.Controls.Add(this.TxtDienGiai);
            this.GroupBox1.Controls.Add(this.Label9);
            this.GroupBox1.Controls.Add(this.Label3);
            this.GroupBox1.Controls.Add(this.AdvNhanVien);
            this.GroupBox1.Controls.Add(this.TxtTongCongNT);
            this.GroupBox1.Controls.Add(this.Label14);
            this.GroupBox1.Controls.Add(this.TxtHoaHong);
            this.GroupBox1.Controls.Add(this.Label23);
            this.GroupBox1.Controls.Add(this.TxtMuaHang);
            this.GroupBox1.Controls.Add(this.Label22);
            this.GroupBox1.Controls.Add(this.CboLoaiTien);
            this.GroupBox1.Controls.Add(this.Label11);
            this.GroupBox1.Controls.Add(this.Label2);
            this.GroupBox1.Controls.Add(this.TxtNgayHopDong);
            this.GroupBox1.Controls.Add(this.CboPhuongThucThanhToan);
            this.GroupBox1.Controls.Add(this.Label8);
            this.GroupBox1.Controls.Add(this.Label7);
            this.GroupBox1.Controls.Add(this.TxtHanGiaoHang);
            this.GroupBox1.Controls.Add(this.Label18);
            this.GroupBox1.Controls.Add(this.TxtSoHopDong);
            this.GroupBox1.Controls.Add(this.CboTinhTrang);
            this.GroupBox1.Controls.Add(this.Label19);
            this.GroupBox1.Controls.Add(this.Label16);
            this.GroupBox1.Controls.Add(this.AdvKhachHang);
            this.GroupBox1.Controls.Add(this.Label13);
            this.GroupBox1.Controls.Add(this.TxtNgayChungTu);
            this.GroupBox1.Controls.Add(this.Label1);
            this.GroupBox1.Controls.Add(this.TxtSoChungTu);
            point = new Point(8, 8);
            this.GroupBox1.Location = point;
            this.GroupBox1.Name = "GroupBox1";
            size = new Size(0x1b9, 0x149);
            this.GroupBox1.Size = size;
            this.GroupBox1.TabIndex = 0;
            this.GroupBox1.TabStop = false;
            this.GroupBox1.Text = "T\x00ecnh trạng đơn đặt h\x00e0ng";
            this.Label4.AutoSize = true;
            point = new Point(0xe2, 0xcf);
            this.Label4.Location = point;
            this.Label4.Name = "Label4";
            size = new Size(0x3d, 13);
            this.Label4.Size = size;
            this.Label4.TabIndex = 0x1c;
            this.Label4.Text = "Ng\x00e0y duyệt";
            this.TxtNgayDuyet.Format = DateTimePickerFormat.Short;
            point = new Point(0x12f, 0xcc);
            this.TxtNgayDuyet.Location = point;
            this.TxtNgayDuyet.Name = "TxtNgayDuyet";
            size = new Size(0x6d, 20);
            this.TxtNgayDuyet.Size = size;
            this.TxtNgayDuyet.TabIndex = 11;
            point = new Point(0x6b, 0x127);
            this.TxtDienGiai.Location = point;
            this.TxtDienGiai.Name = "TxtDienGiai";
            size = new Size(0x131, 20);
            this.TxtDienGiai.Size = size;
            this.TxtDienGiai.TabIndex = 15;
            this.Label9.AutoEllipsis = true;
            this.Label9.AutoSize = true;
            point = new Point(10, 0x12a);
            this.Label9.Location = point;
            this.Label9.Name = "Label9";
            this.Label9.RightToLeft = RightToLeft.No;
            size = new Size(0x30, 13);
            this.Label9.Size = size;
            this.Label9.TabIndex = 0x1a;
            this.Label9.Text = "Diễn giải";
            this.Label9.TextAlign = ContentAlignment.TopRight;
            this.Label3.AutoEllipsis = true;
            this.Label3.AutoSize = true;
            point = new Point(9, 0x57);
            this.Label3.Location = point;
            this.Label3.Name = "Label3";
            this.Label3.RightToLeft = RightToLeft.No;
            size = new Size(0x38, 13);
            this.Label3.Size = size;
            this.Label3.TabIndex = 6;
            this.Label3.Text = "Nh\x00e2n vi\x00ean";
            this.Label3.TextAlign = ContentAlignment.TopRight;
            this.AdvNhanVien.Conditions = "";
            this.AdvNhanVien.LoaiDoiTuong = modGeneral.TypeObjects.NhanVien;
            point = new Point(0x6b, 0x54);
            this.AdvNhanVien.Location = point;
            this.AdvNhanVien.Name = "AdvNhanVien";
            this.AdvNhanVien.ReadOnly = true;
            size = new Size(0x131, 20);
            this.AdvNhanVien.Size = size;
            this.AdvNhanVien.TabIndex = 4;
            this.AdvNhanVien.UpperText = true;
            this.AdvNhanVien.Value = "";
            this.AdvNhanVien.WidthCode = 80;
            this.TxtTongCongNT.BorderStyle = BorderStyle.FixedSingle;
            this.TxtTongCongNT.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x12f, 0x91);
            this.TxtTongCongNT.Location = point;
            this.TxtTongCongNT.Name = "TxtTongCongNT";
            Padding padding = new Padding(1);
            this.TxtTongCongNT.Padding = padding;
            this.TxtTongCongNT.ReadOnly = true;
            size = new Size(0x6d, 20);
            this.TxtTongCongNT.Size = size;
            this.TxtTongCongNT.TabIndex = 7;
            this.TxtTongCongNT.Tag = null;
            this.TxtTongCongNT.TextAlign = HorizontalAlignment.Right;
            decimal num = new decimal(new int[] { 0, 0, 0, 0 });
            this.TxtTongCongNT.Value = num;
            this.TxtTongCongNT.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtTongCongNT.VisualStyle = VisualStyle.Office2007Blue;
            this.TxtTongCongNT.VisualStyleBaseStyle = VisualStyle.Office2007Blue;
            this.Label14.AutoEllipsis = true;
            this.Label14.AutoSize = true;
            this.Label14.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0xa3);
            point = new Point(0xe2, 0x93);
            this.Label14.Location = point;
            this.Label14.Name = "Label14";
            this.Label14.RightToLeft = RightToLeft.No;
            size = new Size(60, 14);
            this.Label14.Size = size;
            this.Label14.TabIndex = 14;
            this.Label14.Text = "Tổng trị gi\x00e1";
            this.Label14.TextAlign = ContentAlignment.TopRight;
            this.TxtHoaHong.BorderStyle = BorderStyle.FixedSingle;
            this.TxtHoaHong.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x12f, 0xae);
            this.TxtHoaHong.Location = point;
            this.TxtHoaHong.Name = "TxtHoaHong";
            padding = new Padding(1);
            this.TxtHoaHong.Padding = padding;
            this.TxtHoaHong.ReadOnly = true;
            size = new Size(0x6d, 20);
            this.TxtHoaHong.Size = size;
            this.TxtHoaHong.TabIndex = 9;
            this.TxtHoaHong.Tag = null;
            this.TxtHoaHong.TextAlign = HorizontalAlignment.Right;
            num = new decimal(new int[] { 0, 0, 0, 0 });
            this.TxtHoaHong.Value = num;
            this.TxtHoaHong.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtHoaHong.VisualStyle = VisualStyle.Office2007Blue;
            this.TxtHoaHong.VisualStyleBaseStyle = VisualStyle.Office2007Blue;
            this.Label23.AutoEllipsis = true;
            this.Label23.AutoSize = true;
            this.Label23.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0xa3);
            point = new Point(0xe2, 0xb1);
            this.Label23.Location = point;
            this.Label23.Name = "Label23";
            this.Label23.RightToLeft = RightToLeft.No;
            size = new Size(0x35, 14);
            this.Label23.Size = size;
            this.Label23.TabIndex = 0x12;
            this.Label23.Text = "Hoa hồng";
            this.Label23.TextAlign = ContentAlignment.TopRight;
            this.TxtMuaHang.BorderStyle = BorderStyle.FixedSingle;
            this.TxtMuaHang.FormatType = FormatTypeEnum.StandardNumber;
            point = new Point(0x6b, 0xad);
            this.TxtMuaHang.Location = point;
            this.TxtMuaHang.Name = "TxtMuaHang";
            padding = new Padding(1);
            this.TxtMuaHang.Padding = padding;
            this.TxtMuaHang.ReadOnly = true;
            size = new Size(0x6d, 20);
            this.TxtMuaHang.Size = size;
            this.TxtMuaHang.TabIndex = 8;
            this.TxtMuaHang.Tag = null;
            this.TxtMuaHang.TextAlign = HorizontalAlignment.Right;
            num = new decimal(new int[] { 0, 0, 0, 0 });
            this.TxtMuaHang.Value = num;
            this.TxtMuaHang.VisibleButtons = DropDownControlButtonFlags.None;
            this.TxtMuaHang.VisualStyle = VisualStyle.Office2007Blue;
            this.TxtMuaHang.VisualStyleBaseStyle = VisualStyle.Office2007Blue;
            this.Label22.AutoEllipsis = true;
            this.Label22.AutoSize = true;
            this.Label22.Font = new Font("Arial", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0xa3);
            point = new Point(9, 0xb1);
            this.Label22.Location = point;
            this.Label22.Name = "Label22";
            this.Label22.RightToLeft = RightToLeft.No;
            size = new Size(0x30, 14);
            this.Label22.Size = size;
            this.Label22.TabIndex = 0x10;
            this.Label22.Text = "Đầu v\x00e0o";
            this.Label22.TextAlign = ContentAlignment.TopRight;
            this.CboLoaiTien.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboLoaiTien.FormattingEnabled = true;
            point = new Point(0x6b, 0x8f);
            this.CboLoaiTien.Location = point;
            this.CboLoaiTien.Name = "CboLoaiTien";
            size = new Size(0x6d, 0x15);
            this.CboLoaiTien.Size = size;
            this.CboLoaiTien.TabIndex = 6;
            this.Label11.AutoSize = true;
            this.Label11.BackColor = Color.Transparent;
            point = new Point(9, 0x92);
            this.Label11.Location = point;
            this.Label11.Name = "Label11";
            size = new Size(0x2f, 13);
            this.Label11.Size = size;
            this.Label11.TabIndex = 12;
            this.Label11.Text = "Loại tiền";
            this.Label11.TextAlign = ContentAlignment.TopRight;
            this.TxtNgayHopDong.Format = DateTimePickerFormat.Short;
            point = new Point(0x131, 0x109);
            this.TxtNgayHopDong.Location = point;
            this.TxtNgayHopDong.Name = "TxtNgayHopDong";
            size = new Size(0x6b, 20);
            this.TxtNgayHopDong.Size = size;
            this.TxtNgayHopDong.TabIndex = 14;
            this.CboPhuongThucThanhToan.Enabled = false;
            this.CboPhuongThucThanhToan.FormattingEnabled = true;
            point = new Point(0x6b, 0x71);
            this.CboPhuongThucThanhToan.Location = point;
            this.CboPhuongThucThanhToan.Name = "CboPhuongThucThanhToan";
            size = new Size(0x131, 0x15);
            this.CboPhuongThucThanhToan.Size = size;
            this.CboPhuongThucThanhToan.TabIndex = 5;
            this.Label8.AutoSize = true;
            point = new Point(9, 0x74);
            this.Label8.Location = point;
            this.Label8.Name = "Label8";
            size = new Size(0x3e, 13);
            this.Label8.Size = size;
            this.Label8.TabIndex = 8;
            this.Label8.Text = "Thanh to\x00e1n";
            this.Label8.TextAlign = ContentAlignment.TopRight;
            this.Label7.AutoSize = true;
            point = new Point(9, 0xcf);
            this.Label7.Location = point;
            this.Label7.Name = "Label7";
            size = new Size(0x4d, 13);
            this.Label7.Size = size;
            this.Label7.TabIndex = 10;
            this.Label7.Text = "Hạn giao h\x00e0ng";
            this.TxtHanGiaoHang.Format = DateTimePickerFormat.Short;
            point = new Point(0x6b, 0xcc);
            this.TxtHanGiaoHang.Location = point;
            this.TxtHanGiaoHang.Name = "TxtHanGiaoHang";
            size = new Size(0x6d, 20);
            this.TxtHanGiaoHang.Size = size;
            this.TxtHanGiaoHang.TabIndex = 10;
            this.Label18.AutoSize = true;
            point = new Point(9, 0x10c);
            this.Label18.Location = point;
            this.Label18.Name = "Label18";
            size = new Size(0x45, 13);
            this.Label18.Size = size;
            this.Label18.TabIndex = 0x16;
            this.Label18.Text = "Số hợp đồng";
            point = new Point(0x6b, 0x109);
            this.TxtSoHopDong.Location = point;
            this.TxtSoHopDong.Name = "TxtSoHopDong";
            size = new Size(0x70, 20);
            this.TxtSoHopDong.Size = size;
            this.TxtSoHopDong.TabIndex = 13;
            this.CboTinhTrang.BackColor = Color.Orange;
            this.CboTinhTrang.DropDownStyle = ComboBoxStyle.DropDownList;
            this.CboTinhTrang.FormattingEnabled = true;
            point = new Point(0x6b, 0xea);
            this.CboTinhTrang.Location = point;
            this.CboTinhTrang.Name = "CboTinhTrang";
            size = new Size(0x131, 0x15);
            this.CboTinhTrang.Size = size;
            this.CboTinhTrang.TabIndex = 12;
            this.Label19.AutoSize = true;
            point = new Point(9, 0xed);
            this.Label19.Location = point;
            this.Label19.Name = "Label19";
            size = new Size(100, 13);
            this.Label19.Size = size;
            this.Label19.TabIndex = 20;
            this.Label19.Text = "X\x00e1c nhận t\x00ecnh trạng";
            this.Label16.AutoEllipsis = true;
            this.Label16.AutoSize = true;
            point = new Point(9, 0x3a);
            this.Label16.Location = point;
            this.Label16.Name = "Label16";
            this.Label16.RightToLeft = RightToLeft.No;
            size = new Size(0x41, 13);
            this.Label16.Size = size;
            this.Label16.TabIndex = 4;
            this.Label16.Text = "Kh\x00e1ch h\x00e0ng";
            this.Label16.TextAlign = ContentAlignment.TopRight;
            this.AdvKhachHang.Conditions = "";
            this.AdvKhachHang.LoaiDoiTuong = modGeneral.TypeObjects.NhaCungCap;
            point = new Point(0x6b, 0x37);
            this.AdvKhachHang.Location = point;
            this.AdvKhachHang.Name = "AdvKhachHang";
            this.AdvKhachHang.ReadOnly = true;
            size = new Size(0x131, 20);
            this.AdvKhachHang.Size = size;
            this.AdvKhachHang.TabIndex = 3;
            this.AdvKhachHang.UpperText = true;
            this.AdvKhachHang.Value = "";
            this.AdvKhachHang.WidthCode = 80;
            this.Label13.AutoSize = true;
            point = new Point(0xfc, 0x1d);
            this.Label13.Location = point;
            this.Label13.Name = "Label13";
            size = new Size(0x20, 13);
            this.Label13.Size = size;
            this.Label13.TabIndex = 2;
            this.Label13.Text = "Ng\x00e0y";
            this.TxtNgayChungTu.Enabled = false;
            this.TxtNgayChungTu.Format = DateTimePickerFormat.Short;
            point = new Point(0x131, 0x19);
            this.TxtNgayChungTu.Location = point;
            this.TxtNgayChungTu.Name = "TxtNgayChungTu";
            size = new Size(0x6b, 20);
            this.TxtNgayChungTu.Size = size;
            this.TxtNgayChungTu.TabIndex = 2;
            this.Label1.AutoSize = true;
            point = new Point(9, 0x1c);
            this.Label1.Location = point;
            this.Label1.Name = "Label1";
            size = new Size(0x45, 13);
            this.Label1.Size = size;
            this.Label1.TabIndex = 0;
            this.Label1.Text = "Số đơn h\x00e0ng";
            point = new Point(0x6b, 0x19);
            this.TxtSoChungTu.Location = point;
            this.TxtSoChungTu.Name = "TxtSoChungTu";
            this.TxtSoChungTu.ReadOnly = true;
            size = new Size(0x70, 20);
            this.TxtSoChungTu.Size = size;
            this.TxtSoChungTu.TabIndex = 1;
            this.CmdCancel.DialogResult = DialogResult.Cancel;
            this.CmdCancel.Image = (Image) manager.GetObject("CmdCancel.Image");
            this.CmdCancel.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x173, 0x157);
            this.CmdCancel.Location = point;
            this.CmdCancel.Name = "CmdCancel";
            size = new Size(0x4f, 0x18);
            this.CmdCancel.Size = size;
            this.CmdCancel.TabIndex = 2;
            this.CmdCancel.Text = "&Tho\x00e1t";
            this.CmdCancel.UseVisualStyleBackColor = true;
            this.CmdOK.Image = (Image) manager.GetObject("CmdOK.Image");
            this.CmdOK.ImageAlign = ContentAlignment.MiddleLeft;
            point = new Point(0x120, 0x157);
            this.CmdOK.Location = point;
            this.CmdOK.Name = "CmdOK";
            size = new Size(0x4e, 0x18);
            this.CmdOK.Size = size;
            this.CmdOK.TabIndex = 1;
            this.CmdOK.Text = "&Chọn";
            this.CmdOK.UseVisualStyleBackColor = true;
            SizeF ef = new SizeF(6f, 13f);
            this.AutoScaleDimensions = ef;
            this.AutoScaleMode = AutoScaleMode.Font;
            this.BackgroundImage = ACCOUNTING.My.Resources.Resources.background;
            size = new Size(0x1c8, 0x173);
            this.ClientSize = size;
            this.ControlBox = false;
            this.Controls.Add(this.GroupBox1);
            this.Controls.Add(this.CmdCancel);
            this.Controls.Add(this.CmdOK);
            this.FormBorderStyle = FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Frm_DuyetDonHangBan";
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "DUYET DON HANG";
            this.GroupBox1.ResumeLayout(false);
            this.GroupBox1.PerformLayout();
            ((ISupportInitialize) this.TxtTongCongNT).EndInit();
            ((ISupportInitialize) this.TxtHoaHong).EndInit();
            ((ISupportInitialize) this.TxtMuaHang).EndInit();
            this.ResumeLayout(false);
        }

        public void ShowData(string strKhoa)
        {
            clsDonDatHang objDH = this.objDH;
            objDH.Load(strKhoa);
            this.TxtSoChungTu.Text = objDH.SoChungTu;
            this.TxtNgayChungTu.Text = LVYModule.Char2Date(objDH.NgayChungTu);
            this.AdvKhachHang.Value = objDH.KhoaDoiTuong;
            this.AdvNhanVien.Value = objDH.KhoaNhanVien;
            this.CboPhuongThucThanhToan.SelectedValue = objDH.PhuongThucThanhToan;
            this.TxtHanGiaoHang.Text = LVYModule.Char2Date(objDH.NgayCungCap);
            this.CboLoaiTien.SelectedValue = objDH.LoaiTien.Trim();
            this.TxtTongCongNT.Value = objDH.TienHangNT + objDH.TienThueNT;
            this.TxtMuaHang.Value = objDH.DauVaoNT;
            this.TxtHoaHong.Value = objDH.HoaHongNT;
            this.CboTinhTrang.SelectedValue = objDH.TinhTrang;
            this.TxtSoHopDong.Text = objDH.SoHopDong;
            this.TxtNgayHopDong.Text = LVYModule.Char2Date(objDH.NgayHopDong);
            this.TxtDienGiai.Text = objDH.DienGiai;
            if (objDH.NgayDuyet.Trim() != "")
            {
                this.TxtNgayDuyet.Text = LVYModule.Char2Date(objDH.NgayDuyet);
            }
            objDH = null;
        }

        internal virtual ADVObjects AdvKhachHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvKhachHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvKhachHang = value;
            }
        }

        internal virtual ADVObjects AdvNhanVien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._AdvNhanVien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._AdvNhanVien = value;
            }
        }

        internal virtual ComboBox CboLoaiTien
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboLoaiTien;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboLoaiTien = value;
            }
        }

        internal virtual ComboBox CboPhuongThucThanhToan
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboPhuongThucThanhToan;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboPhuongThucThanhToan = value;
            }
        }

        internal virtual ComboBox CboTinhTrang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CboTinhTrang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CboTinhTrang = value;
            }
        }

        internal virtual Button CmdCancel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdCancel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdCancel_Click);
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click -= handler;
                }
                this._CmdCancel = value;
                if (this._CmdCancel != null)
                {
                    this._CmdCancel.Click += handler;
                }
            }
        }

        internal virtual Button CmdOK
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdOK;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdOK_Click);
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click -= handler;
                }
                this._CmdOK = value;
                if (this._CmdOK != null)
                {
                    this._CmdOK.Click += handler;
                }
            }
        }

        internal virtual GroupBox GroupBox1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._GroupBox1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._GroupBox1 = value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label11
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label11;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label11 = value;
            }
        }

        internal virtual Label Label13
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label13;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label13 = value;
            }
        }

        internal virtual Label Label14
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label14;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label14 = value;
            }
        }

        internal virtual Label Label16
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label16;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label16 = value;
            }
        }

        internal virtual Label Label18
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label18;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label18 = value;
            }
        }

        internal virtual Label Label19
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label19;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label19 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label22
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label22;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label22 = value;
            }
        }

        internal virtual Label Label23
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label23;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label23 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Label Label9
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label9;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label9 = value;
            }
        }

        internal virtual TextBox TxtDienGiai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienGiai = value;
            }
        }

        internal virtual DateTimePicker TxtHanGiaoHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtHanGiaoHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtHanGiaoHang = value;
            }
        }

        internal virtual C1NumericEdit TxtHoaHong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtHoaHong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtHoaHong = value;
            }
        }

        internal virtual C1NumericEdit TxtMuaHang
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtMuaHang;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtMuaHang = value;
            }
        }

        internal virtual DateTimePicker TxtNgayChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayChungTu = value;
            }
        }

        internal virtual DateTimePicker TxtNgayDuyet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayDuyet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayDuyet = value;
            }
        }

        internal virtual DateTimePicker TxtNgayHopDong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtNgayHopDong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtNgayHopDong = value;
            }
        }

        internal virtual TextBox TxtSoChungTu
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoChungTu;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoChungTu = value;
            }
        }

        internal virtual TextBox TxtSoHopDong
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSoHopDong;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtSoHopDong = value;
            }
        }

        internal virtual C1NumericEdit TxtTongCongNT
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTongCongNT;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTongCongNT = value;
            }
        }
    }
}

